const path = require("path");
const HtmlWebpackPlugin = require("html-webpack-plugin");

module.exports = {
	mode: "development",

	entry: "./src/index.ts",

	output: { filename: "bundle.js" },

	resolve: { extensions: [".ts", ".js"] },

	module: {
		rules: [{ test: /\.ts$/, loader: "ts-loader" }]
	},

	plugins: [new HtmlWebpackPlugin()]
};
